import operate from './operate.js'
import Request from '@/common/api/request.js'
let request = new Request().http

// export default {
//     // 请求样式
//     classifyLeft: function(data) {
//         return request({
//             url: "/category/list", //请求头
//             method: "GET", //请求方式
//             data: data, //请求数据
//         })
//     },
// }
export function getPostInfo(requestConfig) {
	var url = "";
	var serviceIp = "";
	if(undefined != requestConfig.serviceIp) {
		serviceIp = requestConfig.serviceIp + requestConfig.serviceCode;
	} else {
		serviceIp = requestConfig.serviceCode;
	}
	var _param = {
		"URL": serviceIp,
		"PARAMETER": JSON.stringify(requestConfig.data)
	};
	url = "/json/reply/POSTWebService";
	return request({
		url: url,
		method: 'POST',
		data: _param
	});
}
